﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace MyLogger
{
    using PhoneApp.Utilities;

    public partial class TestLoggerPage : PhoneApplicationPage
    {
        public TestLoggerPage()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            listBox1.Items.Add("QueueBufferSize=100");
            string msg = LogTest.TestPerformance(100);
            listBox1.Items.Add(msg);
        }

        private void button2_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            listBox1.Items.Add("QueueBufferSize=100, background thread");
            string msg = LogTest.TestPerformance(100, true);
            listBox1.Items.Add(msg);
        }
    }
}